package com.gsm.dao;

import com.gsm.po.SysUserRole;

import java.util.List;

/**
 * 用户角色表(SysUserRole)表数据库访问层
 *
 * @author wjq
 * @since 2020-11-25 00:37:52
 */
public interface SysUserRoleDao {

    int insertSysUserRole(SysUserRole sysUserRole);

    int deleteSysUserRoleByUserRoleId(Long userRoleId);
    int deleteSysUserRoleByUserId(Long userId);

    int updateSysUserRoleByUserRoleId(SysUserRole sysUserRole);

    SysUserRole selectSysUserRoleByUserRoleId(Long userRoleId);

    List<SysUserRole> selectSysUserRoleList(SysUserRole sysUserRole);

    int insertSysUserRoles(List<SysUserRole> list);

    int deleteSysUserRoleByRoleId(Long roleId);
}